package game.breeze.data.c;

import game.breeze.socket.util.ByteBuffer;

public class Monster extends MapItem {
	private boolean dead;

	/**
	 * @return the dead
	 */
	public boolean isDead() {
		return dead;
	}

	/**
	 * @param dead
	 *            the dead to set
	 */
	public void setDead(boolean dead) {
		this.dead = dead;
	}

	public void readFrom(ByteBuffer buffer) {
		id = buffer.readInt();
		dead = buffer.readBoolean();
		x = buffer.readInt();
		y = buffer.readInt();
	}
}
